package cz.jm.web.manhunter.client.registration;


public class RegistrationView {} 

//extends BasicFormView implements RegistrationPresenter.Display {
//
//	private final RegistrationConstants constants = GWT.create(RegistrationConstants.class);	
//	
//	private final TextItem usernameItem = new TextItem();
//	private final TextItem mailItem = new TextItem(); 
//	private final TextItem mailVerificationItem = new TextItem(); 
//	private final PasswordItem passwordItem = new PasswordItem();
//	private final PasswordItem passwordVerificationItem = new PasswordItem();
//	
////	private final StaticValidator staticValidator = Utils.createStaticValidator(true); 
//			
//	public RegistrationView() {
//		
//        usernameItem.setTitle(constants.username());        
//        usernameItem.setName("username");
//        usernameItem.setWrapTitle(false);        
//        Utils.setRequired(usernameItem);
//        
//        mailItem.setTitle(constants.mail());        
//        mailItem.setName("mail");        
//        Utils.setRequired(mailItem);
//		mailItem.setValidators(Utils.createMailValidator());
//		
//        mailVerificationItem.setTitle(constants.mailVerification());
//        mailVerificationItem.setName("mailVerification");
//        mailVerificationItem.setWrapTitle(false);
//        Utils.setRequired(mailVerificationItem);
//        mailVerificationItem.setValidators(Utils.createMatchIdenticalValueValidator(mailItem.getName()));
//        
//        passwordItem.setTitle(constants.password());                
//        passwordItem.setName("password");
//        Utils.setRequired(passwordItem);
//        // TODO validator na silu hesla
//
//        passwordVerificationItem.setTitle(constants.passwordVerification());         
//        passwordVerificationItem.setName("passwordVerification");
//        Utils.setRequired(passwordVerificationItem);
//        passwordVerificationItem.setValidators(Utils.createMatchIdenticalValueValidator(passwordItem.getName()));
//       
//    	setIcon(ResorcesInfo.getIconRegister());
//    	setSubmitButtonTitle(constants.registration());
//        setFields(usernameItem, mailItem, mailVerificationItem, passwordItem, passwordVerificationItem);
//	}
//	
//	@Override
//    public String getMail() {
//	    return mailItem.getValueAsString();
//    }
//
//	@Override
//    public String getMailVerification() {
//	    return mailVerificationItem.getValueAsString();
//    }
//	
//	@Override
//    public String getUsername() {
//	    return usernameItem.getValueAsString();
//    }
//	
//	@Override
//    public String getPassword() {
//	    return passwordItem.getValueAsString();
//    }
//
//	@Override
//    public String getPasswordVerification() {
//	    return passwordVerificationItem.getValueAsString();
//    }
//
//}
